package by.qizer.android.example.globalweather.util;

import org.json.JSONException;
import org.json.JSONObject;

import by.qizer.android.example.globalweather.util.json.JSONGet;
import by.qizer.android.example.globalweather.util.json.JSONParseCountries;

/**
 * @author Alexey Prybytkouski
 * 
 */
public class HttpUtil {

	public static void sentReuqest() {
		Util.ToLog("Strart request");
		String str = "http://www.worldweatheronline.com/feed/search.ashx?key=216f120440170120131803&format=json&query=Minsk";

		JSONObject a = JSONGet.getJSONfromURL(str);
		new JSONParseCountries(a);

		try {
			System.out.println(a.getString("date"));
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("sa");
	}

}
